package com.lfnyxy.common;

/**
 * Created by ted on 17/5/21.
 */
public class BooleanTool {

    /**
     * 判断字符串是否为true
     * @param ctn
     * @return true, t, 都表示为 true;
     */
    public static boolean isTrue(String ctn){
        if(StringTool.isNotEmpty(ctn)){
            if(ctn.equalsIgnoreCase("true") || ctn.equalsIgnoreCase("y")){
                return true;
            }
        }
        return false;
    }

}
